-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix logic clear status and save status #34780
Conversation
Thanks for the PR, it generally looks good. StatusExample.movIt would be great if @Expensify/design could give us an opinion on that. Also there is a brief period where after the user has cleared their status they can click the save button before we navigate away, which will set the speech bubble emoji as the status. |
My understanding is that this is a known bug and is being fixed? cc @amyevans for thoughts there |
🤔 Do you know where it is being fixed? IMO once the message becomes empty, we should remove the default speech bubble emoji and display the placeholder emoji (And handle that in this PR if we don't have a distinct GH for it elsewhere.) |
Lol okay I thought that might've been the source of the confusion but wasn't sure 😄 |
So to clarify:
Please let me know if I'm missing anything. |
That sounds correct to me. |
Although, I wonder if we should allow a user to save a status that is just the emoji and no message? If they save a message that doesn't have an emoji, perhaps we just default to a comment bubble or we throw a form error? |
Yeah I think we should definitely allow for this.
I think defaulting to a comment bubble is good (which is what we're already doing) So the allowable options would be:
|
Cool cool, works for me! |
Yeah that sounds good to me too 🚀 |
I just updated code to follow this options. @Ollyws please check again web-resize.mp4 |
@amyevans Can I just clarify what you meant by:
Did you mean that if the user deletes their status (by pressing backspace for example) when the text input is empty the status emoji should revert to the placeholder? |
Yes, that's what I was envisioning. However I'll let @Expensify/design weigh in again too! |
I don't have super strong feelings about that—could honestly go either way. I am liking what I'm seeing in this video though! It's comin' along! |
Hmm not entirely sure what my opinion is there. I think if there happens to be an emoji present in the emoji selector, the user should have to press clear status or pick a different emoji. I don't think I would expect that clearing the text input would change the emoji, mostly because we are supporting that users could have an emoji-only status right? |
You know what, now that you lay it out like this, I'm more in favor of making the user press clear or select a different emoji. So NOT resetting the emoji if they delete the message. That's my vote. |
Right, yes, I should have clarified I would expect it to be cleared only if it was the comment bubble emoji. |
Even so, I think if you want to clear it you should click the explicit |
That's fair, and I definitely don't feel passionately about it. I'm happy to move forward with the functionality as-is in the PR! |
Thanks for the discussion! Seems like the PR has everything covered. |
Yep let's proceed with code review! |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.33-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
Details
Fixed Issues
$ #33735
PROPOSAL: #33735 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop-resize.mp4